<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0px;
            margin: 0px;
        }

        .box {
            border: 1px solid black;
            padding: 10px;
            font-size: 16px;
            font-weight: 400;
            margin: 10px;
        }

        .box span {
            border: 1px solid red;
            padding: 3px;
        }

        .ul-box {
            padding: 10px;
            font-size: 16px;
            font-weight: 400;
            margin-left: 30px;
        }

        .bottom-box {
            padding: 10px;
            font-size: 16px;
            font-weight: 400;
            margin: 10px;
        }
    </style>
</head>

<body>
    <div style=" margin: 10px;">
        <div class="box">
            块级元素1 - 默认占据整行
        </div>
        <div class="box">
            块级元素2 - 每个div都会从新行开始
        </div>
        <div class="box">
            这个块级元素包含：<span>行内元素1</span> 和 <span>行内元素2</span>，它们会在同一行显示。
        </div>
        <div class="box">
            <h1>1</h1>
            <h2>1</h2>
            <h3>1</h3>
            <h4>1</h4>
            <h5>1</h5>
            <h6>1</h6>
        </div>
        <div class="box">
            <p>块级元素-段落标签p</p>
        </div>
        <ul class="ul-box">
            <li>
                无序列表ul>li
            </li>
        </ul>
    </div>
    <div class="bottom-box" style="width: 700px;">
        <a href="#">百度跳转-a标签为行内元素</a>
        <a href="#">百度跳转-a标签为行内元素</a>
        <a href="#">百度跳转-a标签为行内元素</a>
        <img src="./a.png" alt="暂无图片" srcset="">
         <img src="./a.png" alt="暂无图片" srcset="">
         <img src="./a.png" alt="暂无图片" srcset="">
         <span>找不到图是因为你没有联网</span>
    </div>
</body>

</html>